using Godot;
using System;

public partial class ActionIdle : BTLeaf//站立节点
{
	//public Characters _character;
    public override void run()
    {
        //GD.Print(_character.Name);
		//GD.Print("站立");
        //EmitSignal(SignalName.completed,succeed());
        _stateMachine.current_state = (int)Characters.State.IDLE;
        return;
    }
    public override double Utility()
    {
        Characters parentOfType = FindParentOfType<Characters>(this);
		_character = parentOfType;
        double value = 0.5;
        if(_character is scp173&&(_character as scp173).sightFrom.Count != 0)
        {
            value = 1.0;
        }
		return value;
    }

	
}
